package com.hjb.service.impl.envelop;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hjb.service.envelop.EnvelopRuleService;
import com.hjb.service.domain.enveloprule.EnvelopRule;
import com.hjb.service.domain.enveloprule.EnvelopRuleExample;
import com.hjb.service.mapper.EnvelopRuleMapper;

@Service
public class EnvelopRuleServiceImpl implements EnvelopRuleService {

	private Logger log = LoggerFactory.getLogger(EnvelopRuleServiceImpl.class);
	
	@Autowired
	private EnvelopRuleMapper envelopRuleMapper;

	@Override
	public List<EnvelopRule> selectByExample(EnvelopRuleExample example) {
		return envelopRuleMapper.selectByExample(example);
	}

	@Override
	public int insertEnvelopRule(EnvelopRule envelopRule) {
		return envelopRuleMapper.insertSelective(envelopRule);
	}

	@Override
	public void updateEnvelopRule(EnvelopRule envelopRule) {
		envelopRuleMapper.updateByPrimaryKeySelective(envelopRule);
	}
	
}
